<%@ page language="java" contentType="text/html;charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.sms.note.*, com.sms.user.*"%>

<%
	//清除内存
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>

<%
	request.setCharacterEncoding("utf-8");
	//String userno = session.getAttribute("userno").toString();
	String msg="";
	String row = request.getParameter("infoid");
	int infoid = Integer.parseInt(row); 
	String title = request.getParameter("title");
	String content = request.getParameter("content");
	System.out.println(infoid);
	if(Note.updatenote(infoid, title, content)){
	   
	msg = "ok";
		} else {
			msg = "error";
		}
	
	msg = msg.replace("/rn/g", "");//去掉产生的换行
	out.clear();
	out.write(msg);
	
%>